package com.example.siyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
/**
 * @Auther: 全
 * @Date: 2022/10/2 19:54
 * @Description: 课程表
 */
public class CourseTable {
    private int id;
    /* 课程名称 */
    private String name;
    /* 上传人姓名 */
    private String scname;
    /* 价格 */
    private Double price;
    /* 标记 */
    private int mark;
    /* 状态 */
    private int status;
    /* 课程分裂 */
    private String classify;
    /* 课程售价 */
    private int sale;
    /* 审核状态 */
    private int appstatus;
    /* 图片 */
    private String piano;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /* 上传时间 */
    private Timestamp uploadTime;
    /* 课程关键字 */
    private String courseKeyWords;
    /* 点赞量 */
    private int numberOfLikes;
    /* 收藏量 */
    private int amountOfCollection;
    /* 评论量 */
    private int amountOfComments;
    /* 课程介绍 */
    private String courseIntroduction;
    /* 视频 */
    private String video;
    /* 是否删除 */
    private int isdel;

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getScname() {
        return scname;
    }

    public void setScname(String scname) {
        this.scname = scname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public int getSale() {
        return sale;
    }

    public void setSale(int sale) {
        this.sale = sale;
    }

    public int getAppstatus() {
        return appstatus;
    }

    public void setAppstatus(int appstatus) {
        this.appstatus = appstatus;
    }

    public String getPiano() {
        return piano;
    }

    public void setPiano(String piano) {
        this.piano = piano;
    }

    public Timestamp getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Timestamp uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getCourseKeyWords() {
        return courseKeyWords;
    }

    public void setCourseKeyWords(String courseKeyWords) {
        this.courseKeyWords = courseKeyWords;
    }

    public int getNumberOfLikes() {
        return numberOfLikes;
    }

    public void setNumberOfLikes(int numberOfLikes) {
        this.numberOfLikes = numberOfLikes;
    }

    public int getAmountOfCollection() {
        return amountOfCollection;
    }

    public void setAmountOfCollection(int amountOfCollection) {
        this.amountOfCollection = amountOfCollection;
    }

    public int getAmountOfComments() {
        return amountOfComments;
    }

    public void setAmountOfComments(int amountOfComments) {
        this.amountOfComments = amountOfComments;
    }

    public String getCourseIntroduction() {
        return courseIntroduction;
    }

    public void setCourseIntroduction(String courseIntroduction) {
        this.courseIntroduction = courseIntroduction;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }

    @Override
    public String toString() {
        return "Coursetable{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", scname='" + scname + '\'' +
                ", price=" + price +
                ", mark=" + mark +
                ", status=" + status +
                ", classify='" + classify + '\'' +
                ", sale=" + sale +
                ", appstatus=" + appstatus +
                ", piano='" + piano + '\'' +
                ", uploadTime=" + uploadTime +
                ", courseKeyWords='" + courseKeyWords + '\'' +
                ", numberOfLikes=" + numberOfLikes +
                ", amountOfCollection=" + amountOfCollection +
                ", amountOfComments=" + amountOfComments +
                ", courseIntroduction='" + courseIntroduction + '\'' +
                ", video='" + video + '\'' +
                ", isdel=" + isdel +
                '}';
    }
}
